package com.platform.service.impl;

import com.platform.dao.ProStyleDao;
import com.platform.entity.ProStyleEntity;
import com.platform.service.ProStyleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 产品款式表Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-04-11 17:02:26
 */
@Service("proStyleService")
public class ProStyleServiceImpl implements ProStyleService {
    @Autowired
    private ProStyleDao proStyleDao;

    @Override
    public ProStyleEntity queryObject(Long id) {
        return proStyleDao.queryObject(id);
    }

    @Override
    public List<ProStyleEntity> queryList(Map<String, Object> map) {
        return proStyleDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return proStyleDao.queryTotal(map);
    }

    @Override
    public int save(ProStyleEntity proStyle) {
        return proStyleDao.save(proStyle);
    }

    @Override
    public int update(ProStyleEntity proStyle) {
        return proStyleDao.update(proStyle);
    }

    @Override
    public int delete(Long id) {
        return proStyleDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return proStyleDao.deleteBatch(ids);
    }

    @Override
    public List<ProStyleEntity> queryAuditStyles(Map<String, Object> param) {
        return proStyleDao.queryAuditStyles(param);
    }
}
